﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSEPT
{
    public class Transaction
    {
        public Transaction()
        {
            init(new User(), false, 0, String.Empty);
        }
        public Transaction(int userid, bool type, int amount, string desc)
        {
            init(new User(userid), type, amount, desc);
        }
        public Transaction(User usr, bool type, int amount, string desc)
        {
            init(usr, type, amount, desc);
        }
        private void init(User usr, bool type, int amount, string desc)
        {
            Usr = usr;
            Type = type;
            Amount = amount;
            Description = desc;
        }
        private User _Usr;

        public User Usr
        {
            get { return _Usr; }
            set { _Usr = value; }
        }

        private bool _Type;

        public bool Type
        {
            get { return _Type; }
            set { _Type = value; }
        }

        private int _Amount;

        public int Amount
        {
            get { return _Amount; }
            set { _Amount = value; }
        }

        private string _Description;

        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }
        
        
    }
}
